<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div style="font-size: 30px;">
    3
</div>
</body>
<script>
	const sleep = (time) => new Promise(resolve => setTimeout(resolve, time))
	const getOrder = async () => {
		const {data: {order}} = await axios.get('/api/order/get', {params: {key: 'web'}})
		if (order) {
			window.location.href = order.open + '.html'
		}
		await sleep(1000);
		await getOrder()
	}
	getOrder()
</script>
</html>
